if (getAt(mnv, mymnv) > 1) and ((abs(the locH of sprite getAt(ppl, 1) - the locH of sprite getAt(ppl, myppl)) > 120) or (abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, myppl)) > 40)) then
if sprite(getAt(ppl, myppl)).flipH = 1 then
set the locH of sprite getAt(ppl, myppl) to the locH of sprite getAt(ppl, myppl) + myx
else
set the locH of sprite getAt(ppl, myppl) to the locH of sprite getAt(ppl, myppl) - myx
end if
if (the locV of sprite getAt(ppl, myppl) + 13) < the locV of sprite getAt(ppl, 1) then
set the locV of sprite getAt(ppl, myppl) to the locV of sprite getAt(ppl, myppl) + myy
else
if (the locV of sprite getAt(ppl, myppl) - 13) > the locV of sprite getAt(ppl, 1) then
set the locV of sprite getAt(ppl, myppl) to the locV of sprite getAt(ppl, myppl) - myy
end if
end if
set the memberNum of sprite getAt(ppl, myppl) to member(the memberNum of sprite getAt(ppl, myppl) + 1, 1)
setAt(mnv, mymnv, getAt(mnv, mymnv) - 1)
else
set the member of sprite getAt(ppl, myppl) to member(stnd, 1)
end if
else
if getAt(foes, myfoes) = pnch then
set the memberNum of sprite getAt(ppl, myppl) to member(the memberNum of sprite getAt(ppl, myppl) + 1, 1)
setAt(mnv, mymnv, getAt(mnv, mymnv) - 1)
if getAt(mnv, mymnv) < 1 then
set the member of sprite getAt(ppl, myppl) to member(stnd, 1)
setAt(foes, myfoes, stnd)
end if
else
if getAt(foes, myfoes) = hit1 then
if getAt(mnv, mymnv) > 1 then
setAt(mnv, mymnv, getAt(mnv, mymnv) - 1)
else
set the member of sprite getAt(ppl, myppl) to member(stnd, 1)
setAt(foes, myfoes, stnd)
end if
else
if getAt(foes, myfoes) = hit2 then
setAt(mnv, mymnv, getAt(mnv, mymnv) - 1)
if getAt(mnv, mymnv) > faldwn then
set the memberNum of sprite getAt(ppl, myppl) to member(the memberNum of sprite getAt(ppl, myppl) + 1, 1)
else
if getAt(mnv, mymnv) < getup then
set the memberNum of sprite getAt(ppl, myppl) to member(the memberNum of sprite getAt(ppl, myppl) + 1, 1)
if getAt(mnv, mymnv) < 2 then
set the member of sprite getAt(ppl, myppl) to member(stnd, 1)